package cn.alone.pet.domain;

import cn.alone.basic.domain.BaseDomain;
import cn.alone.org.domain.Shop;
import cn.alone.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 宠物信息和宠物详情
 * @author lanan
 */
@Data
public class Pet extends BaseDomain {
    private String name;
    private String resources;
    private BigDecimal saleprice;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date onsaletime;
    /**
     * state默认0下架1上架
     */
    private Integer state = 0;
    private BigDecimal costprice;
    /**
     * 操作时间
     * */
    private Date createtime = new Date();
    private Long type_id;
    private PetType type;
    private Long shop_id;
    private Shop shop;
    private Long user_id;
    private User user;
    private Long search_master_msg_id;
    private PetDetail detail = new PetDetail();
    private Integer payType;
}
